package com.lotusfall.mapper;

import com.lotusfall.pojo.Ad;
import com.lotusfall.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface AdServiceMapper {
    @Select("select * from tb_ad")
    List<Ad> selectAll();

    @Select("select * from tb_ad where type = #{type}")
    List<Ad> selectByType(Integer type);

    @Select("select * from tb_comments")
    List<Comment> selectAllComments();
}
